﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;

namespace Sabloane_de_proiectare.Command
{
    class VerticalRail : Canvas
    {
       public VerticalRail()
            {
                Rectangle line1 = new Rectangle();
                line1.Height = 5;
                line1.Width = 50;
                line1.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetLeft(line1, 0);
                Canvas.SetTop(line1, 10);

                Rectangle line2 = new Rectangle();
                line2.Height = 5;
                line2.Width = 50;
                line2.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetTop(line2, 35);
                Canvas.SetLeft(line2, 0);

                this.Children.Add(line1);
                this.Children.Add(line2);

                for (int i = 5; i <= 45; i = i + 10)
                {
                    Rectangle temp = new Rectangle();
                    temp.Height = 30;
                    temp.Width = 5;
                    temp.Fill = new SolidColorBrush(Colors.Black);
                    Canvas.SetLeft(temp, i);
                    Canvas.SetTop(temp, 10);
                    this.Children.Add(temp);
            }
        }
    }
}
